package com.zzj.service;

import com.zzj.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zzj
 * @since 2023-05-12
 */
public interface IUserService extends IService<User> {

    User findUserByUsername(String username, String password) throws Exception;

    User findUserByUsername(String username);

    User updateIpAddress(int id, String ip, String address);

    void updateLoginTime(String username);

    User createUser(String username,String password, int status) throws Exception;

    User findUserByOpenId(String openId);


}
